import request from '@/utils/request'
//用户粉丝表接口
export function bbsFansQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/bbsFans/query',
    params: data,
  })
}

export function bbsFansQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/bbsFans/query/' + id,
  })
}

export function bbsFansAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/bbsFans/add',
    data,
  })
}

export function bbsFansDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/bbsFans/delete/' + id,
  })
}

export function bbsFansUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/bbsFans/update',
    data,
  })
}

export function bbsFansMyInfo(id) {
  //人物的信息
  return request({
    method: 'get',
    url: '/bbsFans/myInfo/' + id,
  })
}

export function bbsFansQueryMyFans(data) {
  //我的粉丝查询
  return request({
    method: 'get',
    url: '/bbsFans/queryMyFans',
    params: data,
  })
}

export function bbsFansQueryMyFollow(data) {
  //我的关注查询
  return request({
    method: 'get',
    url: '/bbsFans/queryMyFollow',
    params: data,
  })
}

export function bbsFansCancel(id) {
  //取消关注
  return request({
    method: 'get',
    url: '/bbsFans/cancel/' + id,
  })
}
